<?php
class User
{
	public $name;
	public $age;
	public $sex;
	public function __construct($name,$age,$sex)
	{
		$this->name=$name;
		$this->age=$age;
		$this->sex=$sex;
	}
	function add()
	{
		echo 'add user:'.
		$this->name.$this->age.$this->sex;
	}
	function edit()
	{
		echo 'edit user:'.
		$this->name.$this->age.$this->sex;
	}
}
$obj = new User('lisi',34,'boy');
$obj->edit();


